<ul class="pager">
    {% if page_obj.has_previous %}
        <li class="previous">
            <a href="?page={{ page_obj.previous_page_number }}">&lAarr;上一页</a>
        </li>
    {% else %}
        <li class="previous disabled">
            <a>&lAarr;上一页</a>
        </li>
    {% endif %}

    <li class="page-number">{{ page_obj.number }} / {{ page_obj.paginator.num_pages }}</li>

    {% if page_obj.has_next %}
        <li class="next">
            <a href="?page={{ page_obj.next_page_number }}">下一页&rarr;</a>
        </li>
    {% else %}
        <li class="next disabled">
            <a>下一页&rarr;</a>
        </li>
    {% endif %}

</ul>